package com.scu.bank.util;

public class UserRoleVerifyUtil {

    /**
     * 科研人员
     * @param role
     * @return
     */
    public static boolean isScientificResearcher(int role){
        return (role&1)==1;
    }

    /**
     * 单位科研秘书
     * @param role
     * @return
     */
    public static boolean isSecretaryOfScientificResearchUnit(int role){
        return (role&2)==2;
    }


    /**
     * 科研管理人员
     * @param role
     * @return
     */
    public static boolean isScientificResearchManagementPersonnel(int role){
        return (role&4)==4;
    }

    /**
     * 学校领导
     * @param role
     * @return
     */
    public static boolean isSchoolLeader(int role){
        return (role&8)==8;
    }
}
